﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using E.DAL;
using E.Model;

namespace E.BLL
{
    public class ReportBLL
    {

        private ReportDAL dal;

        public ReportBLL()
        {
            dal = new ReportDAL();
        }


        /// <summary>
        /// 统计课件学习进度,课时完成情况
        /// </summary>
        /// <param name="searchModel"></param>
        /// <param name="pageSize"></param>
        /// <param name="pageIndex"></param>
        /// <returns></returns>
        public ReportStudyInfoStaticsModel SearchReportStudyInfoByCondition(SearchReportStudyInfoModel searchModel, int pageSize, int pageIndex)
        {
            return dal.SearchReportStudyInfo(searchModel, pageSize, pageIndex);
        }


        /// <summary>
        /// 统计学生登录情况及次数
        /// </summary>
        /// <param name="searchModel"></param>
        /// <param name="pageSize"></param>
        /// <param name="pageIndex"></param>
        /// <returns></returns>
        public ReportStudyInfoStaticsModel SearchReportLoginInfoByCondition(SearchReportStudyInfoModel searchModel, int pageSize, int pageIndex)
        {
            return dal.SearchReportLoginInfo(searchModel, pageSize, pageIndex);
        }
    }
}
